<?php


namespace App\Repositories\Admin\Question;


use App\Models\QuestionTag;
use App\Repositories\BaseRepository;

class TagRepository extends BaseRepository
{

    public function model()
    {
        // TODO: Implement model() method.
        return new QuestionTag();
    }
    public function pagination($where=[],$param=[])
    {
        return $this->model()->all();
    }

    public function create($name)
    {
        $insertData = [];
        $insertData['name'] = $name;
        return (new static())->model()->create($insertData);
    }
}
